package com.study.www.demo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author : Administrator.zhuyanpeng
 * @date : 2019/11/16 - 9:21
 */
@Configuration
public class DemoWebConfiguration implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/demo/1").setViewName("/demo/2");
    }


}
